﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Yipusoft.Evaluate.Model;

namespace Yipusoft.Evaluate.BLL
{
    public class Award
    {
        public static bool Exsits(int AwardID)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.Exsits(AwardID);
        }
        public static int Insert(AwardInfo Award)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.Insert(Award);
        }
        public static bool Update(AwardInfo Award)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.Update(Award);
        }
        public static bool Delete(int AwardID)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.Delete(AwardID);
        }
        public static AwardInfo GetAward(int AwardID)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.GetAward(AwardID);
        }
        public static List<AwardInfo> GetList(string StrWhere)
        {
            Yipusoft.Evaluate.DAL.Award dal = new Yipusoft.Evaluate.DAL.Award();
            return dal.GetList(StrWhere);
        }
    }
}
